import request from '@/utils/request'


export function studentPage(data) {
  return request({
    url: '/students/page',
    method: 'post',
    data
  })
}


export function changeStudentState(data) {
  return request({
    url: '/students/change/state',
    method: 'post',
    data
  })
}



export function studentOne(id) {
    return request({
    url: '/students/one/' + id,
    method: 'get',
  })
}

export function student_insert_edit(data) {
  return request({
    url: '/students/insert/edit',
    method: "post",
    data
  })
}

// 删除/批量删除
export function studentDelete(id) {
  return request({
    url: '/students/remove/' + id,
    method: "get"
  })
}
